//
//  JPUSH.h
//  MDC
//
//  Created by 123456 on 16/8/26.
//  Copyright © 2016年 YTYangK. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>
#import <AVFoundation/AVFoundation.h>
#import "TabBarC.h"
#import "NavigationC.h"
#import "SearchVC.h"



static NSString * _Nonnull appKey = @"1efa03f742d17ce624f7b8bc";
static NSString * _Nonnull channel = @"App Store";
static BOOL isProduction = FALSE;


@interface JPUSH : NSObject
singleton_for_interface(JPUSH)


/**  业务需求 对象，非常JP 需求对象*/
@property (strong, nonatomic) TabBarC * _Nullable tabBarC;
@property (strong, nonatomic) NavigationC * _Nullable navigationC;
@property (strong, nonatomic) SearchVC * _Nullable searchVC;
@property (strong, nonatomic) UIWindow  * _Nullable sonWindow;



/**
 * 推送的汇总方法
 */
- (void)registerPushServiceWithApplication:(nonnull UIApplication *)app :(nonnull NSDictionary *)launch;

/* *
 *  推送的业务层数据处理
 */
- (void)callMethodPuchApplication:(nonnull UIApplication*)application receiveRemoteNot:(nonnull NSDictionary*)userInfo enclosureInfo:(void  (^ _Nullable ) (_Nullable id enclosure)) info;

/**
 * 推送的统计回调
 */
//+  (void)receiveRemoteNotification:(nonnull NSDictionary *)user;
// 设置 访问密匙 对取出的cookie进行反归档处理
- (void)updateSession;

/**
 *  绑定推送账号
 */
- (void)albbBindChannel;

/**
 *  退出登录清空账号
 */
-(void)Deleteaccount;

/**
 *  绑定消息监听通道
 */
- (void)registerMsgReceive;


@end
